package mercurialpractice

class Bill {

    int cherry
    int curlyMaple
    int genuineMahogany
    int wenge
    int whiteOak
    int sawdust
    
    static hasOne= [customer:Customer]
    static constraints = { 
        cherry min:0, max:1000
        curlyMaple min:0, max:1000
        genuineMahogany min:0, max:1000
        wenge min:0, max:1000
        whiteOak min:0, max:1000
        sawdust min:0, max:1000
    }
    String toString() {
        "${id}"
    }
}
